// Test_Regexp_One.h: interface for the Test_Regexp_One class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEST_REGEXP_ONE_H__13B8DEB0_27BF_450D_BDE4_37D7102F7286__INCLUDED_)
#define AFX_TEST_REGEXP_ONE_H__13B8DEB0_27BF_450D_BDE4_37D7102F7286__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Test_Regexp_One : public TestCase  
{
	CPPUNIT_TEST_SUITE(Test_Regexp_One);
		CPPUNIT_TEST(testSplit_MulSep);	
		CPPUNIT_TEST(testSplit_MulSep_InTail);	
		CPPUNIT_TEST(testIsMatch_Ip4_simple);	
		CPPUNIT_TEST(testIsMatch_Ip4_accurate);	

		CPPUNIT_TEST(testPick_http);	
		CPPUNIT_TEST(testPick_fandian);	

		CPPUNIT_TEST(testReplace_mobile);	
	CPPUNIT_TEST_SUITE_END();

public:
	Test_Regexp_One();
	virtual ~Test_Regexp_One();

public:
	void	setUp();
	void	tearDown();

public:
	//-split-
	void	testSplit_MulSep();
	void	testSplit_MulSep_InTail();

	//-match-
	void	testIsMatch_Ip4_simple();
	void	testIsMatch_Ip4_accurate();

	//-pick-
	void	testPick_http();
	void	testPick_fandian();

	//-replace-
	void	testReplace_mobile();

protected:
	void	printUrl(CStringArray& strUrlSet);
};

#endif // !defined(AFX_TEST_REGEXP_ONE_H__13B8DEB0_27BF_450D_BDE4_37D7102F7286__INCLUDED_)
